home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form frmDirectory
- BackColor = &H00C0C0C0&
- ClientHeight = 3570
- ClientLeft = 1095
- ClientTop = 1485
- ClientWidth = 5265
- ControlBox = 0 'False
- Height = 3975
- Left = 1035
- LinkTopic = "Form3"
- MaxButton = 0 'False
- MDIChild = -1 'True
- MinButton = 0 'False
- ScaleHeight = 3570
- ScaleWidth = 5265
- Top = 1140
- Width = 5385
- WindowState = 2 'Maximized
- Begin TextBox txtQuote
- Height = 285
- Left = 3840
- TabIndex = 13
- Top = 2040
- Width = 1335
- End
- Begin CommandButton cmdQuote
- Caption = "Quote"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 375
- Left = 2805
- TabIndex = 12
- Top = 2040
- Width = 975
- End
- Begin TextBox txtDelDir
- Height = 285
- Left = 1125
- TabIndex = 9
- Top = 1395
- Width = 1335
- End
- Begin CommandButton cmdDelDir
- Caption = "Del Dir"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 375
- Left = 45
- TabIndex = 8
- Top = 1395
- Width = 975
- End
- Begin TextBox txtMakeDir
- Height = 285
- Left = 1125
- TabIndex = 7
- Top = 915
- Width = 1335
- End
- Begin CommandButton cmdMakeDir
- Caption = "Make Dir"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 375
- Left = 45
- TabIndex = 6
- Top = 915
- Width = 975
- End
- Begin CommandButton cmdCdup
- Caption = "Parent Dir"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 375
- Left = 45
- TabIndex = 5
- Top = 2595
- Width = 975
- End
- Begin CommandButton cmdChangeDir
- Caption = "Change Dir"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 375
- Left = 45
- TabIndex = 4
- Top = 435
- Width = 975
- End
- Begin CommandButton cmdGetCurrentDirectory
- Caption = "Get Dir"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 375
- Left = 45
- TabIndex = 3
- Top = 2115
- Width = 975
- End
- Begin CommandButton cmdDirList
- Caption = "List Dir"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 375
- Left = 2805
- TabIndex = 2
- Top = 435
- Width = 975
- End
- Begin TextBox txtDirectory
- Height = 285
- Left = 1125
- TabIndex = 1
- Top = 435
- Width = 1335
- End
- Begin TextBox txtPattern
- Height = 285
- Left = 3885
- TabIndex = 0
- Top = 435
- Width = 1335
- End
- Begin Label Label3
- BackColor = &H00C0C0C0&
- Caption = "Command:"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 255
- Left = 3840
- TabIndex = 14
- Top = 1800
- Width = 975
- End
- Begin Label Label1
- BackColor = &H00C0C0C0&
- Caption = "Directory:"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 255
- Left = 1125
- TabIndex = 11
- Top = 195
- Width = 1335
- End
- Begin Label Label2
- BackColor = &H00C0C0C0&
- Caption = "Pattern:"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 255
- Left = 3885
- TabIndex = 10
- Top = 195
- Width = 975
- End
- Option Explicit
- Private Sub cmdCdup_Click ()
- ClearListDir
- MainForm.Ftp1.Action = FtpActionParentDir
- End Sub
- Private Sub cmdChangeDir_Click ()
- Dim s As String
- s = txtDirectory.Text
- If (s <> "") Then
- ClearListDir
- MainForm.Ftp1.Directory = s
- MainForm.Ftp1.Action = FtpActionChangeDir
- End If
- End Sub
- Private Sub cmdDelDir_Click ()
- MainForm.Ftp1.DstFilename = txtDelDir.Text
- MainForm.Ftp1.Action = FtpActionDeleteDir
- End Sub
- Private Sub cmdDirList_Click ()
- ClearListDir
- MainForm.Ftp1.Pattern = txtPattern.Text
- On Error Resume Next
- MainForm.Ftp1.Action = FtpActionGetDirList
- If (Err <> 0) Then
- If (Err = 20425) Then
- MsgBox "Server busy, try again later."
- Else
- MsgBox Error
- End If
- End If
- End Sub
- Private Sub cmdGetCurrentDirectory_Click ()
- MainForm.Ftp1.Action = FtpActionGetCurrentDir
- End Sub
- Private Sub cmdMakeDir_Click ()
- MainForm.Ftp1.DstFilename = txtMakeDir.Text
- MainForm.Ftp1.Action = FtpActionCreateDir
- End Sub
- Sub cmdQuote_Click ()
- MainForm.Ftp1.QuoteCmd = txtQuote.Text
- MainForm.Ftp1.Action = FtpActionQuote
- End Sub
-